Skip to main content

Create Webhook

POST 

https://api.fuse.io/api/v0/notifications/webhook

Create a webhook associated with a Charge project

Request

Query Parameters

    apiKey stringrequired
    Example: {{publicKey}}

Header Parameters

    API-SECRET stringrequired
    Example: {{secretKey}}

Body

    projectId string
    webhookUrl string
    eventType string

Responses

Created

Schema
    _id string
    projectId string
    webhookUrl string
    eventType string
    createdAt string
    updatedAt string
    __v number
curl -L -X POST 'https://api.fuse.io/api/v0/notifications/webhook' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"projectId": "62caedf9e2719e72815d0703",
"webhookUrl": "https://webhook.site/d7a716ac-8119-4114-9586-f0667c2cb1e1",
"eventType": "ALL"
}'
Request Collapse all
Base URL
https://api.fuse.io/api/v0/notifications
Parameters
— queryrequired
— headerrequired
Body
{
  "projectId": "62caedf9e2719e72815d0703",
  "webhookUrl": "https://webhook.site/d7a716ac-8119-4114-9586-f0667c2cb1e1",
  "eventType": "ALL"
}
ResponseClear

Click the Send API Request button above and see the response here!

Was this page helpful?